getAttribute(AttributeKey::IS_GLOBAL_VAR) === \true) { return \true; } return $variable->getAttribute(AttributeKey::IS_STATIC_VAR) === \true; } public function isUsedByReference(Variable $variable) : bool { return $variable->getAttribute(AttributeKey::IS_BYREF_VAR) === \true; } }